﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;
using System.ComponentModel;
using QuanLyRapChieuPhim.DAO;
using QuanLyRapChieuPhim.DTO;

namespace QuanLyRapChieuPhim.BUS
{
    class TaiKhoanBUS
    {
        private TaiKhoanDAO DAO = new TaiKhoanDAO();

        public BindingList<TaiKhoanDTO> GetList()
        {
            return DAO.GetList();
        }

        public int CheckLogin(string _TenDangNhap, string _MatKhau)
        {
            return DAO.CheckLogin(_TenDangNhap, _MatKhau);
        }

        public BindingList<TaiKhoanDTO> GetList_QLNhanVien()
        {
            return DAO.GetList_QLNhanVien();
        }

        public BindingList<TaiKhoanDTO> GetList_QLNhanVien_DaXoa()
        {
            return DAO.GetList_QLNhanVien_DaXoa();
        }

        public BindingList<TaiKhoanDTO> GetList_QLKhachHang()
        {
            return DAO.GetList_QLKhachHang();
        }

        public BindingList<TaiKhoanDTO> GetList_QLKhachHang_DaXoa()
        {
            return DAO.GetList_QLKhachHang_DaXoa();
        }

        public BindingList<TaiKhoanDTO> GetListListLikeName_NhanVien_QL(string _Ten)
        {
            return DAO.GetListListLikeName_NhanVien_QL(_Ten);
        }

        public BindingList<TaiKhoanDTO> GetListListLikeName_NhanVien_QL_DaXoa(string _Ten)
        {
            return DAO.GetListListLikeName_NhanVien_QL_DaXoa(_Ten);
        }

        public BindingList<TaiKhoanDTO> GetListListLikeName_KhachHang_QL(string _Ten)
        {
            return DAO.GetListListLikeName_KhachHang_QL(_Ten);
        }

        public BindingList<TaiKhoanDTO> GetListListLikeName_KhachHang_QL_DaXoa(string _Ten)
        {
            return DAO.GetListListLikeName_KhachHang_QL_DaXoa(_Ten);
        }

        public int GetIDFromName(string _TenDangNhap)
        {
            return DAO.GetIDFromName(_TenDangNhap);
        }

        public TaiKhoanDTO GetFromId(int _Ma)
        {
            return DAO.GetFromId(_Ma);
        }

        public TaiKhoanDTO GetFromName(string _Ten)
        {
            return DAO.GetFromName(_Ten);
        }

        public TaiKhoanDTO GetFromId_NhanVien(int _Ma)
        {
            return DAO.GetFromId_NhanVien(_Ma);
        }

        public TaiKhoanDTO GetFromId_KhachHang(int _Ma)
        {
            return DAO.GetFromId_KhachHang(_Ma);
        }

        public int GetIDFromIDTTDat(int _Ma)
        {
            return DAO.GetIDFromIDTTDat(_Ma);
        }

        public int GetIDFromIDNhanVien(int _Ma)
        {
            return DAO.GetIDFromIDNhanVien(_Ma);
        }

        public int GetIDFromIDKhachHang(int _Ma)
        {
            return DAO.GetIDFromIDKhachHang(_Ma);
        }

        public bool Delete(int _Ma)
        {
            return DAO.Delete(_Ma);
        }

        public bool UnDelete(int _Ma)
        {
            return DAO.UnDelete(_Ma);
        }

        public bool Add_KhachHang(TaiKhoanDTO _TaiKhoan)
        {
            return DAO.Add_KhachHang(_TaiKhoan);
        }

        public bool Add_NhanVien(TaiKhoanDTO _TaiKhoan)
        {
            return DAO.Add_NhanVien(_TaiKhoan);
        }

        public bool Update_NhanVien(TaiKhoanDTO _TaiKhoan)
        {
            return DAO.Update_NhanVien(_TaiKhoan);
        }

        public bool Update_KhachHang(TaiKhoanDTO _TaiKhoan)
        {
            return DAO.Update_KhachHang(_TaiKhoan);
        }
    }
}
